/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.hiof.moraa.server.service.model;

import java.util.Date;

/**
 *
 * @author Bergy
 */
public class PassTargetFeed extends Feed {

    private int targetId;
    private String targetType;
    private String attendantCode;

    public PassTargetFeed(int userId, String username, String fullname, Date timestamp, String attendantCode, String profilePicture, int targetId, String targetType) {
        super(userId, username, fullname, profilePicture, timestamp);
        this.targetId = targetId;
        this.targetType = targetType;
        this.attendantCode = attendantCode;
    }

    public String getAttendantCode() {
        return attendantCode;
    }

    public String getTargetType() {
        return targetType;
    }

    @Override
    public String getDescription() {
        return getUsername() + " [" + attendantCode + "] passed target " + targetType;
    }

    @Override
    public String getType() {
        return "PassTargetFeed";
    }
}
